package com.techfengs.pojo;

public class Book {
    private int id;
    private String name;

	public Book() {
		System.out.println("空构造器");
		
	}
	public Book(int id, String name) {
		System.out.println("有参构造器");
		
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		System.out.println("id的setter方法");
		
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		System.out.println("name的setter方法");
		
		this.name = name;
	}


}
